<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'mortgageCollectionRecord.label', default: 'MortgageCollectionRecord')}"/>
    <title>催收处置1</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li class="active">
                        <span>催收处置</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">

            </h2>
        </div>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="message alert alert-info" role="status">${flash.message}</div>
</g:if>
<g:hasErrors bean="${this.mortgageCollectionRecord}">
    <ul class="errors" role="alert">
        <g:eachError bean="${this.mortgageCollectionRecord}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                    error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                催收处置
            </div>

            <div class="panel-body form-horizontal">

                <div class="form-group">

                    <label class="col-md-5 control-label ">资产包名：</label>
                    <div class="col-md-3">
                        <span class="cont">${abnormalMortgageBatch?.name}</span>
                    </div>

                </div>

                <div class="form-group">
                    <label class="col-md-5 control-label ">处置方式：</label>
                    <div class="col-md-3">
                        <span class="cont">${abnormalMortgageBatch?.disposeMethod}</span>
                    </div>
                </div>

                <g:form action="save1" resource="${this?.mortgageCollectionRecord}">
                    <div class="form-group">
                        <input type="hidden" name="department" id="department" value="${abnormalMortgageBatch?.disposalDepartment?.name}"/>
                        <input type="hidden" name="fullName" id="fullName" value="${abnormalMortgageBatch?.disposalUser?.fullName}"/>
                        <input type="hidden" name="abnormalMortgageBatch" id="abnormalMortgageBatch" value="${abnormalMortgageBatch?.id}"/>
                        <input type="hidden" name="targetUri" id="targetUri" value="${params?.targetUri}"/>
                    </div>
                    <g:if test="${abnormalMortgageBatch?.disposalDepartment?.name=='委外部'}">
                        <div class="form-group">
                            <label class="col-md-5 control-label ">委外机构：</label>
                            <div class="col-md-3">
                                <g:select class="form-control" name="agencyAccount" id="agencyAccount"
                                          optionKey="id" optionValue="name"
                                          from="${com.cindata.Account.findAllByType(com.cindata.dictionary.AccountTypeDict.findByCode('AgencyAccount'))}"
                                          value="${mortgageCollectionRecord?.agencyAccount}"
                                          noSelection="${['': '请选择']}"/>
                            </div>
                        </div>
                    </g:if>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收类型：</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="collectionType" id="collectionType"  optionKey="id" optionValue="name"
                                      from="${com.cindata.dictionary.MortgageCollectionType.list()}"
                                      value="${mortgageCollectionRecord?.collectionType}"
                                      noSelection="${['': '请选择催收类型']}"/>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-md-5 control-label ">逾期后果提示：</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="isRemindedConsequence" id="isRemindedConsequence"
                                      optionKey="value" optionValue="name"
                                      from="${[[name:'已提示',value:true],[name:'未提示',value:false]]}"
                                      value="${mortgageCollectionRecord?.isRemindedConsequence}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">逾期原因：</label>
                        <div class="col-md-3">
                            <g:textArea  name="reasonOfOverdue" id="reasonOfOverdue"  value="${mortgageCollectionRecord?.reasonOfOverdue}" class="form-control textarea" rows="5" cols="5"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">客户约定还款计划：</label>
                        <div class="col-md-3">
                            <g:textArea  name="repaymentPlan" id="repaymentPlan"  value="${mortgageCollectionRecord?.repaymentPlan}" class="form-control textarea" rows="5" cols="5"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收结果：</label>
                        <div class="col-md-3">
                            <g:textArea  name="collectionResult" id="collectionResult"  value="${mortgageCollectionRecord?.collectionResult}" class="form-control textarea" rows="5" cols="5"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-2 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="save" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>

        </div>
    </div>
</div>





</body>
</html>
